package Java.j1;

import java.util.Scanner;

public class AcWing_617 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Double L = sc.nextDouble();
        System.out.printf("%.0f minutos",(L/30)*60);
    }
}
